<html>

    <head>
    
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>DOM Scripting</title>

        <script type="text/javascript">
        
			// Hello World DOM-Scripting
            function sayHello(){
                
                var hello = "hello ";
                var dom = "DOM-Scripting";
                
                // Text in DIV-Container schreiben
                document.getElementById("ausgabe").innerHTML = hello + dom;
                
                // Button ausblenden
                document.getElementById("cmd_hello").style.visibility = 'hidden';
            
            }
        </script>
        
    </head>

    <body>
    
        <input id="cmd_hello" type="button" onClick="sayHello();" value="Hello DOM-Scripting" />
        
        <!-- Ausgabe -->
        <div id="ausgabe"> 
        
        </div>
        
    </body>
    
</html>
